﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CloudDcPc.Entity
{
    public class MenuType
    {

        public override string ToString()
        {
                return Name;
        }
       
        private int id;

        public int Id
        {
            get { return id; }
            set { id = value; }
        }

        private string name;

        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        private int hykcanuse;

        public int Hykcanuse
        {
            get { return hykcanuse; }
            set { hykcanuse = value; }
        }

        private string textHykcanuse;
        public string TextHykcanuse
        {
            get
            {
                switch (Hykcanuse)
                {
                    case 1: return "是";
                    case 0: return "否";
                    default: return "未知";
                }
            }
            set
            {
                switch (value)
                {
                    case "是": Hykcanuse = 1; break;
                    case "否": Hykcanuse = 0; break;
                }
            }
        }

        private string textDjqcanuse;
        public string TextDjqcanuse
        {
            get
            {
                switch (Djqcanuse)
                {
                    case 1: return "是";
                    case 0: return "否";
                    default: return "未知";
                }
            }
            set
            {
                switch (value)
                {
                    case "是": Djqcanuse = 1; break;
                    case "否": Djqcanuse = 0; break;
                }
            }
        }
        private int djqcanuse;

        public int Djqcanuse
        {
            get { return djqcanuse; }
            set { djqcanuse = value; }
        }

    }
}
